class Myclass: #定义类
    va11 = "String 1" #静态变量
    def __init__(self):
        self.va12 = 'Value 2'
if __name__ == "__main__":
    c = Myclass();
    #判断c是否为MyClass的对象
    print(isinstance(c, Myclass))
    l = [1,2,3,4]
    #判断1是否为列表
    print(isinstance(l, list))